use std::sync::Arc;
use engine::DBRef;

use crate::server::session::{QueryManager, QueryManagerRef};

pub mod flight_sql;
pub mod session;

#[derive(Clone)]
pub struct SqlServerImpl {
    db: DBRef,
    query_mgr: QueryManagerRef,
}

impl SqlServerImpl {

    pub fn create(db: DBRef) -> Self {
        Self {
            db,
            query_mgr: Arc::new(QueryManager::default())
        }
    }

}